import 'package:flutter/material.dart';
import 'package:flutter_app/utils/windowUtil.dart';
class AppBarTemp1 extends StatefulWidget implements PreferredSizeWidget
{

  Color color;
  Widget child;
  Widget right;
  AppBarTemp1( {this.color,this.child });
  @override
  State<AppBarTemp1> createState() => _AppBarTemp1State();

  @override
  Size get preferredSize {
    return new Size.fromHeight(56.0);
  }

}

class _AppBarTemp1State extends State<AppBarTemp1> {
  @override
  void initState() {
    super.initState();
  }

  @override
  Widget build(BuildContext context) {
    return
      new Container(


        color: Color(0xffffffff),
        width: windowUtil.width,
        child:

        Container(
          margin: EdgeInsets.only(top: windowUtil.statusbar),

          child: widget.child

        ),





      );

  }
}